Raspberry Pi 2/3

Installing Raspbian

OpenCPN works on Raspberry Pi 2 and 3 (recommended) models. You can install OpenCPN adding an Ubuntu PPA (Personal Packages Archives) to your system's Software Sources. We will see how to do this but first of all you need to have a running system.

Raspbian is the official Operating System for Raspberry Pi. You have two options to install Raspbian on an SD card: with NOOBS (New Out Of Box Software) or installing an SD image directly. We recommend NOOBS.

Follow this easy guide for both options: https://www.raspberrypi.org/learning/software-guide/quickstart/[692]

If you feel lazy you can try OpenPlotter[693], a complete marine Operating System for Raspberry Pi with OpenCPN + plugins installed and amazing extra tools ready to use. OpenPlotter can be installed with NOOBS following this guide: https://sailoog.gitbooks.io/openplotter-documentation/content/en/getting_started.html[694]

Apt-Key Deprecated - May 2018

See http://www.cruisersforum.com/forums/f134/opencpn-version-4-8-4-released-200246-2.html#post2627925[695] and the later posts from bdbcat and CaptRon. How do I fix the GPG error “NO_PUBKEY”?[696] Apt-key is deprecated, see gpg: keyserver receive failed: No dirmngr[697] and GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available[698]

Adding OpenCPN Ubuntu PPA to Raspbian Software Sources

Once you have Raspbian running on Raspberry Pi, go to Menu → Accessories → Terminal, and type:

sudo nano /etc/apt/sources.list

A text editor will open. Move the cursor to the end and add this line if you are on Raspbian Stretch:

deb http://ppa.launchpad.net/opencpn/opencpn/ubuntu/ xenial main

Or, if your Raspbian is Jessie:

deb http://ppa.launchpad.net/opencpn/opencpn/ubuntu/ trusty main

Save the file pressing Ctrl+X, say Yes and press enter. Now type:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C865EB40

and press enter. Now be sure you have Internet connection and type:

sudo apt-get update

The Software sources will be updated and finally you will have to type:

sudo apt-get install opencpn

and you are done!

Installing plugins

All the plugin packages are named as opencpn-plugin-<pluginname> , to install a plugin, use a command like shown on the example below:

sudo apt-get install opencpn-plugin-watchdog
sudo apt-get install opencpn-plugin-statusbar
…

Wildcards can be used in the installed package names, so to install all the available plugins, you may use:

sudo apt-get install opencpn-plugin*

If a new version of OpenCPN or a plugin is released and you want to update (this IS a good idea), just type:

sudo apt-get update
sudo apt-get upgrade

Advanced

SD Cards

It is suggested to use 'High Endurance' microSDHC cards[699]. Google 'Wear Level' on SD cards to discover more information.

Installing OpenCPN betas

Coming soon

OpenGL acceleration

Coming soon

Compiling OpenCPN on Raspberry Pi

https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:developer_manual:developer_guide:compiling_linux:rpi2[700]